<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	contentType="text/html">
	<html>
	<head>
	<title>RichFaces Greeter</title>
	</head>
	<body>
	<a4j:form>
		<rich:panel header="RichFaces Greeter" style="width: 315px">
			<h:outputText value="Your name: " />
			<h:inputText value="#{prueba.nombre}">
				<f:validateLength minimum="1" maximum="30" />
			</h:inputText>

			<a4j:commandButton value="Get greeting" reRender="greeting" />
			<h:panelGroup id="greeting">
				<h:outputText value="Hello, #{prueba.nombre}!"
					rendered="#{not empty prueba.nombre}" />
			</h:panelGroup>
		</rich:panel>
	</a4j:form>
	</body>
	</html>
</f:view>

